package com.cloudptt.api.product.func.call.group;

import com.cloudptt.api.product.func.call.CallAttr;
import com.mcptt.db.model.AddrInfo;
import com.mcptt.db.model.UserInfo;


public class HalfCallInfo {
	public static final int InfoType_Group = 1;
	public static final int InfoType_Webrtc = 2;
	
	private CallAttr callAttr = null;
	private int callState;
	private int speakState;
	private AddrInfo floorUserInfo;
	private int videoState;
	private AddrInfo videoUserInfo;

	public HalfCallInfo(CallAttr callAttr,int callState,int speakState, AddrInfo speaker, int videoState, AddrInfo videoSpeaker)
	{
		this.callAttr = callAttr;
		this.callState = callState;
		this.speakState = speakState;
		this.floorUserInfo = speaker;
		this.videoState = videoState;
		this.videoUserInfo = videoSpeaker;
	}
	
	public CallAttr getCallAttr() {
		return callAttr;
	}
	public int getTalkState() {
		return callState;
	}
	public int getSpeakState() {
		return speakState;
	}
	public AddrInfo getFloorUserInfo() {
		return floorUserInfo;
	}

	public int getVideoState() {
		return videoState;
	}

	public AddrInfo getVideoUserInfo() {
		return videoUserInfo;
	}
	
	public String toString()
	{
		StringBuffer strBuff = new StringBuffer("TalkInfo:");
		strBuff.append("callState = ").append(callState).append(",");
		strBuff.append("speakState = ").append(speakState).append(",");
		strBuff.append("floorUserInfo = ").append(floorUserInfo).append(",");
		strBuff.append("videoState = ").append(videoState).append(",");
		strBuff.append("videoUserInfo = ").append(videoUserInfo).append(";");
		return strBuff.toString();
	}
}
